'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  async index() {
    const { ctx } = this;
    // ctx.apiSuccess('ok', {name:'张三'}, 200)
    ctx.apiFail('fail', {}, 202);
  }
}

module.exports = HomeController;
